package com.app.utils.impl.labour;

import com.app.utils.impl.IConsole;
import com.app.utils.impl.Strategy;
import com.zndroid.utils.XUtils;
import com.zndroid.utils.impl.FileUtil;

/**
 * Created by lzy on 2022/2/16.
 */
public class FileUtilStrategy extends Strategy {
    public FileUtilStrategy(IConsole iConsole) {
        super(iConsole);
    }

    @Override
    public void doing() {
        FileUtil util = XUtils.create().fileUtil();

        iConsole.console("formatSize(‘123456L’)", util.formatSize(123456L));
        iConsole.console("isExists(‘haha’)", util.isExists("haha") + "");
        iConsole.console("File操作", "内容较多，请参阅API，API函数见文知意");
    }
}
